﻿<UserControl
    x:Class="wUniApp.Controls.ucPatientsTable"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:wUniApp.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <Grid>
    <GridView ItemsSource="{Binding Items}" 
        HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
      <GridView.ItemTemplate>
        <DataTemplate>
          <Grid Width="300" Height="100" Background="#70000000" Margin="8">
            <TextBlock Margin="10,10,10,0" Text="{Binding FirstName}" VerticalAlignment="Top" FontSize="15"/>
            <TextBlock Margin="10,40,10,0" Text="{Binding LastName}" VerticalAlignment="Top" FontSize="15"/>
            <TextBlock Margin="10,70,10,0" VerticalAlignment="Top" FontSize="15">
              <Run Text="Vek: " />
              <Run Text="{Binding Age}"/>
            </TextBlock>
          </Grid>
        </DataTemplate>
      </GridView.ItemTemplate>
    </GridView>

    </Grid>
</UserControl>
